package com.gzcss.gulimall.product.feign;

import com.gzcss.common.to.elasticsearch.SkuEsModel;
import com.gzcss.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-search")
public interface SearchFeignService {


    /**
     * 远程保存到Elasticsearch
     * @param skuEsModels
     * @return
     */
    @PostMapping("/search/save/product")
     R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);


}
